﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using Rated.DAL.Repository;

namespace Rated.Website.Controllers
{
    public class UserProfileController : Controller
    {
        //
        // GET: /UserProfile/

        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public ActionResult Update()
        {
            var userId = (int)Membership.GetUser().ProviderUserKey;
            UserProfileRepository.Update(userId, Request.Form);
            return null;
        }

    }
}
